package com.zmn.oms.zmn.business.impl.part;

import com.google.common.collect.Maps;
import com.zmn.oms.model.vo.work.modify.must.ZsPartUnitConversionVO;
import com.zmn.oms.zmn.business.interfaces.part.ZsOrderPartBService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class ZsOrderPartBServiceImpl implements ZsOrderPartBService {

    //@Reference(version = com.zmn.base.plat.engine.common.constant.DubboConsts.INTERFACE_VERSION , check = false)
    //protected PartSkuUnitListRemoteService partSkuUnitListRemoteService;

    @Override
    public Map<Integer, ZsPartUnitConversionVO> getPartUnitConversion() {
        Map<Integer, ZsPartUnitConversionVO> map = Maps.newHashMap();
        /*ResponseDTO<List<PartSkuUnitDRO>> responseDTO = partSkuUnitListRemoteService.listAll();
        if (responseDTO.isSuccess() && CollectionUtils.isNotEmpty(responseDTO.getData())) {
            responseDTO.getData().forEach(e -> {
                ZsPartUnitConversionVO conversionVO = new ZsPartUnitConversionVO();
                conversionVO.setPartId(e.getSkuId());
                conversionVO.setScale(e.getScaleTwo());
                conversionVO.setUnit(e.getUnitTwo());
                map.put(e.getSkuId(), conversionVO);
            });
        }*/
        return map;
    }
}
